package com.zimmur.service.account;

import java.util.List;

import com.zimmur.common.EnumPointRule;
import com.zimmur.model.account.PointLog;
import com.zimmur.model.account.PointLogParameter;
import com.zimmur.model.account.UserMessageParameter;
import com.zimmur.model.account.view.LogView;

/**
 * 积分日志服务接口
 * @author Administrator
 *
 */
public interface IPointLogService {
	/**
	 * 积分日志记录
	 * @param userId 用户
	 * @param remark 行为描述
	 * @param rule 积分规则
	 * @param point 积分抵扣费用
	 * @return
	 */
	public boolean mainPointLog(Long userId,String remark,EnumPointRule rule,int point);
	//查询用户日志
	public UserMessageParameter selectByPage(long userId,int curPage,int pageSize);
	
	public List<PointLog> selectPageListByUserId(PointLogParameter parameter);
	public int selectPageListByUserIdCount(PointLogParameter parameter);
}
